package com.whu.util;

import io.netty.buffer.ByteBuf;

public class DataProcessUtil {

    //占两个字节空间的整型数还原
    public static int readInt16(ByteBuf byteBuf) {
        byte b1 = byteBuf.readByte();
        byte b2 = byteBuf.readByte();
        return b1 * 16 + b2;
    }

}
